@extends('app')
@section('content')
<ul class="nav nav-tabs">
    <li><a href="{{ url('/admin/user')}}">考勤详情</a></li>
</ul>
<form id="userForm" method="post" action="">
    <div class="panel panel-default description2 mt20">
        <div class="form-group clearfix">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label" style="padding-left: 0;padding-right: 0;">用户名：</label>
            <div class="col-sm-9 col-xs-12" style="padding-left: 0;padding-right: 0;">
                @if(!empty($att))
                 {{getUserName($att->user_id)}}
                @endif
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label" style="padding-left: 0;padding-right: 0;">考勤月份：</label>
            <div class="col-sm-9 col-xs-12" style="padding-left: 0;padding-right: 0;">
                @if(!empty($att))
                    {{$att->date}}
                @endif
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label" style="padding-left: 0;padding-right: 0;">考勤得分：</label>
            <div class="col-sm-9 col-xs-12" style="padding-left: 0;padding-right: 0;">
                @if(!empty($att))
                    {{$att->score}}
                @endif
            </div>
        </div>
        <div class="form-group clearfix">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label" style="padding-left: 0;padding-right: 0;">考勤详情：</label>
            <div class="col-sm-9 col-xs-12" style="padding-left: 0;padding-right: 0;">
                @if(!empty($att))
                @foreach(unserialize($att->attendence) as $k=>$b)
                    {{$k}}日&nbsp;{{$b}},<br/>
                @endforeach
                @endif
            </div>
        </div>
        {!! csrf_field() !!}
    </div>
</form>
@endsection
